import { request } from "../untils/request.js";
export default {
    get: ({ curPage, eachPage }) => request({
        type: "GET",
        url: "/api/usersList",
        data: { curPage, eachPage },
    }),
    // 删除数据
    remove:async removeData=>{
        return await request({
            type:"POST",
            url:"/api/usersList/remove",
            data:removeData,
        })
    },
   // 通过_id查找整条数据
    findOne: async _id =>
    await request({
        type: "GET",
        url: `/api/usersList/findOne/${_id}`,
    }),

}